﻿using System.Collections.Generic;
using LINQtoFxCop.Core;
using LINQtoFxCop.Metrics.Methods;

namespace LINQtoFxCop.DomainSpecific.Examples
{
  internal sealed class SimpleConstraintMethodNbILInstructions : MethodNbILInstructions
  {
    public SimpleConstraintMethodNbILInstructions()
      : base("SimpleConstraintMethodNbILInstructions", DomainSpecificIntrospectionRule.ResourceName, DomainSpecificIntrospectionRule.Assembly)
    { }

    protected override IEnumerable<QueryResult> Query()
    {
      return base.Query().Top(10);
    }
  }
}